module.exports = {
  routes: [
    {
      path: '/',
      component: '../routes/LocaleProvider',
      routes: [
        {
          path: '/user',
          component: '../layouts/UserLayout',
          routes: [
            { path: '/user', redirect: '/user/login' },
            { path: '/user/login', name: 'login', component: './User/Login' },
            { path: '/user/register', name: 'register', component: './User/Register' },
          ]
        },
        {
          path: '/',
          component: '../layouts/BasicLayout',
          routes: [
            { path: '/', redirect: '/home'},
            { path: '/home', name: 'login', component: './Home' },
          ]
        }
      ]
    }
  ]
};
